<?php

namespace SSystems\RecipesBundle\Form\Type\AdmRecipe;

use Admingenerated\SSystemsRecipesBundle\Form\BaseAdmRecipeType\EditType as BaseEditType;
use Symfony\Component\Form\FormBuilderInterface;
use SSystems\RecipesBundle\Form\RecipeImageType;

class EditType extends BaseEditType
{
	public function buildForm(FormBuilderInterface $builder, array $options)
    {
           $builder->add('name', 'text', array(  'required' => true,  'label' => 'Name',  'help' => NULL,  'translation_domain' => 'Admin',));
           $builder->add('description', 'textarea', array(  'required' => true,  'label' => 'Description',  'help' => NULL,  'translation_domain' => 'Admin',));
           $builder->add('image', new RecipeImageType());
    }
}
